package com.example.dish_api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.dish_model.entity.Dish;
import jakarta.annotation.Resource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: sjz
 * @since: 2024/7/12 9:19
 */
@FeignClient(
        name = "take-out-dish",
        contextId = "take-out-dish"
)
@Component
public interface DishClient {


    @PostMapping("/dishApi/list")
    List<Dish> list(LambdaQueryWrapper<Dish> wrapper);

}
